package com.jackstraw.jack_base.rules.entity.po;

import com.jackstraw.jack_base.datasource.mybatis.base.entity.po.MyBatisPo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 规则表  主键
 *
 * @author zhaozhao 945514650@qq.com
 * @since version:1.0 generatorDate:2022-12-04 14:28:29
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class RuleKeyPo<PO extends RuleKeyPo<PO>> extends MyBatisPo<PO> {

    /**
     * 规则主键
     */
    private Long ruleId;

    @Override
    public List<String> idFieldNameS() {
        List<String> fieldNameS = new ArrayList<>();
        fieldNameS.add("ruleId");
        return fieldNameS;
    }

    @Override
    public List<String> idColumnNameS() {
        List<String> idColumnNameS = new ArrayList<>();
        idColumnNameS.add("rule_id");
        return idColumnNameS;
    }

    @Override
    public String tableName() {
        return "t_rule";
    }


    @Override
    public Map<String, String> fieldColumnNameMap() {
        Map<String, String> fieldColumnNameMap = new HashMap<>();
        fieldColumnNameMap.put("ruleId", "rule_id");
        fieldColumnNameMap.put("ruleDesc", "rule_desc");
        fieldColumnNameMap.put("ruleType", "rule_type");
        fieldColumnNameMap.put("ruleText", "rule_text");
        fieldColumnNameMap.put("version", "version");
        fieldColumnNameMap.put("isValid", "is_valid");
        fieldColumnNameMap.put("createTime", "create_time");
        fieldColumnNameMap.put("updateTime", "update_time");
        return fieldColumnNameMap;
    }
}